<!DOCTYPE html>
<html>
    <head>
        <title><g:layoutTitle default="Grails" /></title>
        <link rel="stylesheet" href="${resource(dir:'css',file:'main.css')}" />
        <link rel="shortcut icon" href="${resource(dir:'images',file:'favicon.ico')}" type="image/x-icon" />
        <g:layoutHead />
        <g:javascript library="application" />
    </head>
    <body>
        <div id="spinner" class="spinner" style="display:none;">
            <img src="${resource(dir:'images',file:'spinner.gif')}" alt="${message(code:'spinner.alt',default:'Loading...')}" />
        </div>
        <div id="grailsLogo"><g:link action="index" controller="blog"><img src="${resource(dir:'images',file:'logo2.jpg')}" alt="Grails" border="0" width="80px" height="60px" /></g:link></div>
        <div style="float:right">
	        <sec:ifNotLoggedIn>
			  <g:link controller="login" action="auth">登录</g:link>
			</sec:ifNotLoggedIn>
			<sec:ifLoggedIn>
				<h3>当前用户：<font color="blue"><sec:username /></font></h3>
				<g:link controller="user">修改密码</g:link>
				<g:link controller="logout">退出</g:link>
			</sec:ifLoggedIn>
        </div>
        <g:layoutBody />
    </body>
</html>